package com.weilai.controller;


import com.weilai.service.UserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Api(tags = "跳转页面", description = "提供跳转方法的接口")
public class IndexController {

    @Autowired
    private UserService userService;

    // 忘记密码页面访问路径映射
    @GetMapping("/forgetPassword")
    public String forgetPassword() {
        return "forgetPassword";
    }

    // 主页面访问路径映射
    @GetMapping("/mainPage")
    public String mainPage() {
        return "mainPage";
    }

    // 注册页面访问路径映射
    @GetMapping("/register")
    public String register() {
        return "register";
    }

    // 添加视频访问路径映射
    @GetMapping("/vedio")
    public String vedio() {
        return "video";
    }

    @GetMapping("/postVideo")
    public String postVideo() {
        return "postVideo";
    }



    //管理页面路径映射
    @GetMapping("/adminPage")
    public String adminPage(){
        return "redirect:/admin/toSearchUser";
    }

    //发布帖子
    @GetMapping("/postArticle")
    public String postArticle(){
        return "postArticle";
    }

    //联系我们
    @GetMapping("Contact")
    public String Contact(){
        return "Contact";
    }

    //侵权举报--InfringementReport.html
    @GetMapping("InfringementReport")
    public String InfringementReport(){
        return "InfringementReport";
    }
    //谣言举报---RumorReport.html
    @GetMapping("RumorReport")
    public String RumorReport(){
        return "RumorReport";
    }
    //隐私保护---protect.html
    @GetMapping("protect")
    public String protect(){
        return "protect";
    }

}